package mju.cxf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import mju.cxf.dto.ProductCategoriesDTO;
import mju.cxf.entity.ProductCategories;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductCategoriesMapper extends BaseMapper<ProductCategories> {
    boolean removeByPorductId(Integer productId);

    boolean updateByProductId(Integer productId, Integer categoriesId);

    ProductCategories selectByProductId(Integer productId);

    boolean removeByProductIdAndCategories(List<ProductCategoriesDTO> productCategoriesDTO);

    boolean removeByCategoriesId(Integer categoriesId);
}
